Input and Output (stdio.h)

Contents|Index|Previous|Next
Input and output (stdio.h)

The following documentation discusses functions to manage files or other input/output streams. Among these functions are subroutines to generate or scan strings according to specifications from a format string. The corresponding declarations are in stdio.h.

- clearerr
- fclose
- feof
- ferror
- fflush
- fgetc
- fgetpos
- fgets
- fiprintf
- fopen
- fdopen
- fputc
- fputs
- fread
- freopen
- fseek
- fsetpos
- ftell
- fwrite
- getc
- getchar
- gets
- iprintf
- mktemp, mkstemp
- perror
- putc
- putchar
- puts
- remove
- rename
- rewind
- setbuf
- setvbuf
- siprintf
- printf, fprintf, sprintf
- scanf, fscanf, sscanf
- tmpfile
- tmpnam, tempnam
- vprintf, vfprintf, vsprintf

The underlying facilities for input and output depend on the host system, although these functions provide a uniform interface.

The reentrant versions of these functions use the following macros.

_stdin_r(reent)
_stdout_r(reent)
_stderr_r(reent)

These reentrant versions are used instead of the globals, stdin, stdout, and stderr. The argument, reent, is a pointer to a reentrancy structure.

Top|Contents|Index|Previous|Next